# == Schema Info
# Schema version: 20091029102158
#
# Table name: assets
#
#  id                :integer(4)      not null, primary key
#  assetable_id      :integer(4)      not null
#  user_id           :integer(4)
#  assetable_type    :string(25)      not null
#  data_content_type :string(255)
#  data_file_name    :string(255)
#  data_file_size    :integer(4)
#  locale            :integer(1)      default(0)
#  type              :string(25)
#  created_at        :datetime
#  updated_at        :datetime

class Picture < Asset
  has_attached_file :data,
                    :url  => "/assets/pictures/:id/:style_:basename.:extension",
                    :path => ":rails_root/public/assets/pictures/:id/:style_:basename.:extension",
	                  :styles => { :content => '575>', :thumb => '100x100' }
	
	validates_attachment_size :data, :less_than=>2.megabytes
end
